<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QxOrm: C:/Dvlp/_Perso/QxOrm/include/QxFunction/IxFunction.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_qxorm.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QxOrm
   &#160;<span id="projectnumber">1.4.3</span>
   </div>
   <div id="projectbrief">C++ Object Relational Mapping library</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_ix_function_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">IxFunction.h</div>  </div>
</div>
<div class="contents">
<a href="_ix_function_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">**</span>
<a name="l00003"></a>00003 <span class="comment">** http://www.qxorm.com/</span>
<a name="l00004"></a>00004 <span class="comment">** Copyright (C) 2013 Lionel Marty (contact@qxorm.com)</span>
<a name="l00005"></a>00005 <span class="comment">**</span>
<a name="l00006"></a>00006 <span class="comment">** This file is part of the QxOrm library</span>
<a name="l00007"></a>00007 <span class="comment">**</span>
<a name="l00008"></a>00008 <span class="comment">** This software is provided &#39;as-is&#39;, without any express or implied</span>
<a name="l00009"></a>00009 <span class="comment">** warranty. In no event will the authors be held liable for any</span>
<a name="l00010"></a>00010 <span class="comment">** damages arising from the use of this software</span>
<a name="l00011"></a>00011 <span class="comment">**</span>
<a name="l00012"></a>00012 <span class="comment">** Commercial Usage</span>
<a name="l00013"></a>00013 <span class="comment">** Licensees holding valid commercial QxOrm licenses may use this file in</span>
<a name="l00014"></a>00014 <span class="comment">** accordance with the commercial license agreement provided with the</span>
<a name="l00015"></a>00015 <span class="comment">** Software or, alternatively, in accordance with the terms contained in</span>
<a name="l00016"></a>00016 <span class="comment">** a written agreement between you and Lionel Marty</span>
<a name="l00017"></a>00017 <span class="comment">**</span>
<a name="l00018"></a>00018 <span class="comment">** GNU General Public License Usage</span>
<a name="l00019"></a>00019 <span class="comment">** Alternatively, this file may be used under the terms of the GNU</span>
<a name="l00020"></a>00020 <span class="comment">** General Public License version 3.0 as published by the Free Software</span>
<a name="l00021"></a>00021 <span class="comment">** Foundation and appearing in the file &#39;license.gpl3.txt&#39; included in the</span>
<a name="l00022"></a>00022 <span class="comment">** packaging of this file. Please review the following information to</span>
<a name="l00023"></a>00023 <span class="comment">** ensure the GNU General Public License version 3.0 requirements will be</span>
<a name="l00024"></a>00024 <span class="comment">** met : http://www.gnu.org/copyleft/gpl.html</span>
<a name="l00025"></a>00025 <span class="comment">**</span>
<a name="l00026"></a>00026 <span class="comment">** If you are unsure which license is appropriate for your use, or</span>
<a name="l00027"></a>00027 <span class="comment">** if you have questions regarding the use of this file, please contact :</span>
<a name="l00028"></a>00028 <span class="comment">** contact@qxorm.com</span>
<a name="l00029"></a>00029 <span class="comment">**</span>
<a name="l00030"></a>00030 <span class="comment">****************************************************************************/</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="preprocessor">#ifndef _IX_FUNCTION_H_</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define _IX_FUNCTION_H_</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#pragma once</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="preprocessor">#include &lt;boost/any.hpp&gt;</span>
<a name="l00047"></a>00047 <span class="preprocessor">#include &lt;boost/function.hpp&gt;</span>
<a name="l00048"></a>00048 <span class="preprocessor">#include &lt;boost/lexical_cast.hpp&gt;</span>
<a name="l00049"></a>00049 <span class="preprocessor">#include &lt;boost/static_assert.hpp&gt;</span>
<a name="l00050"></a>00050 <span class="preprocessor">#include &lt;boost/type_traits/is_same.hpp&gt;</span>
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="preprocessor">#include &lt;<a class="code" href="_qx_bool_8h.html" title="qx_bool : QxOrm library boolean type with code and description message when an error occured...">QxCommon/QxBool.h</a>&gt;</span>
<a name="l00053"></a>00053 <span class="preprocessor">#include &lt;<a class="code" href="_qx_property_bag_8h.html" title="Used by introspection engine (IxClass, IxDataMember, IxFunction, etc.) to add meta-data (property bag...">QxCommon/QxPropertyBag.h</a>&gt;</span>
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 <span class="preprocessor">#include &lt;<a class="code" href="_qx_collection_8h.html" title="QxOrm container (keep insertion order + quick access by index + quick access by key)">QxCollection/QxCollection.h</a>&gt;</span>
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 <span class="preprocessor">#include &lt;<a class="code" href="_qx_function_error_8h.html" title="Define all messages when an error occured using QxFunction module of QxOrm library.">QxFunction/QxFunctionError.h</a>&gt;</span>
<a name="l00058"></a>00058 <span class="preprocessor">#include &lt;<a class="code" href="_qx_function_macro_8h.html">QxFunction/QxFunctionMacro.h</a>&gt;</span>
<a name="l00059"></a>00059 
<a name="l00060"></a>00060 <span class="preprocessor">#include &lt;<a class="code" href="remove__attr_8h.html" title="qx::trait::remove_attr&lt;T&gt;::type : return a type without pointer, const, reference and/or volatile att...">QxTraits/remove_attr.h</a>&gt;</span>
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 <span class="keyword">namespace </span>qx {
<a name="l00063"></a>00063 
<a name="l00068"></a><a class="code" href="classqx_1_1_ix_function.html">00068</a> <span class="keyword">class </span><a class="code" href="classqx_1_1_ix_function.html" title="qx::IxFunction : common interface for all functions registered into QxOrm context (used by introspect...">IxFunction</a> : <span class="keyword">public</span> qx::<a class="code" href="classqx_1_1_qx_property_bag.html" title="qx::QxPropertyBag : used by introspection engine (IxClass, IxDataMember, IxFunction, etc.) to add meta-data (property bag)">QxPropertyBag</a>
<a name="l00069"></a>00069 {
<a name="l00070"></a>00070 
<a name="l00071"></a>00071 <span class="keyword">protected</span>:
<a name="l00072"></a>00072 
<a name="l00073"></a><a class="code" href="classqx_1_1_ix_function.html#a7165364cf3dbd0f5db4dba02cf7b6ec0">00073</a>    QString <a class="code" href="classqx_1_1_ix_function.html#a7165364cf3dbd0f5db4dba02cf7b6ec0" title="Function key.">m_sKey</a>;            
<a name="l00074"></a><a class="code" href="classqx_1_1_ix_function.html#aeb7cd97182ac1f838098e9e340060200">00074</a>    QString <a class="code" href="classqx_1_1_ix_function.html#aeb7cd97182ac1f838098e9e340060200" title="Separator character(s) for &#39;QString&#39; parameters type.">m_sSeparator</a>;      
<a name="l00075"></a><a class="code" href="classqx_1_1_ix_function.html#ac35f9f10ef77391feb029b0beabff381">00075</a>    QString <a class="code" href="classqx_1_1_ix_function.html#ac35f9f10ef77391feb029b0beabff381" title="Function description.">m_sDescription</a>;    
<a name="l00076"></a>00076 
<a name="l00077"></a>00077 <span class="keyword">public</span>:
<a name="l00078"></a>00078 
<a name="l00079"></a><a class="code" href="classqx_1_1_ix_function.html#a53d1eb72393b4a5dbe13656cf511e13b">00079</a>    <span class="keyword">typedef</span> std::vector&lt;boost::any&gt; <a class="code" href="classqx_1_1_ix_function.html#a53d1eb72393b4a5dbe13656cf511e13b">type_any_params</a>;
<a name="l00080"></a>00080 
<a name="l00081"></a><a class="code" href="classqx_1_1_ix_function.html#aa71d1c23c028660e06c65d1e86386df5">00081</a>    <a class="code" href="classqx_1_1_ix_function.html#aa71d1c23c028660e06c65d1e86386df5">IxFunction</a>() : qx::<a class="code" href="classqx_1_1_qx_property_bag.html" title="qx::QxPropertyBag : used by introspection engine (IxClass, IxDataMember, IxFunction, etc.) to add meta-data (property bag)">QxPropertyBag</a>(), <a class="code" href="classqx_1_1_ix_function.html#aeb7cd97182ac1f838098e9e340060200" title="Separator character(s) for &#39;QString&#39; parameters type.">m_sSeparator</a>(<span class="stringliteral">&quot;|&quot;</span>) { ; }
<a name="l00082"></a><a class="code" href="classqx_1_1_ix_function.html#a8286eb8982c6ed108eb4a4b97f1bbfb1">00082</a>    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_ix_function.html#a8286eb8982c6ed108eb4a4b97f1bbfb1">~IxFunction</a>() { ; }
<a name="l00083"></a>00083 
<a name="l00084"></a><a class="code" href="classqx_1_1_ix_function.html#ad0175f22fc545c667a775d843a442b7c">00084</a>    QString <a class="code" href="classqx_1_1_ix_function.html#ad0175f22fc545c667a775d843a442b7c">getKey</a>()<span class="keyword"> const                 </span>{ <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_ix_function.html#a7165364cf3dbd0f5db4dba02cf7b6ec0" title="Function key.">m_sKey</a>; }
<a name="l00085"></a><a class="code" href="classqx_1_1_ix_function.html#ad0da3c2c139783cc5c4a13a1736cfe35">00085</a>    QString <a class="code" href="classqx_1_1_ix_function.html#ad0da3c2c139783cc5c4a13a1736cfe35">getSeparator</a>()<span class="keyword"> const           </span>{ <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_ix_function.html#aeb7cd97182ac1f838098e9e340060200" title="Separator character(s) for &#39;QString&#39; parameters type.">m_sSeparator</a>; }
<a name="l00086"></a><a class="code" href="classqx_1_1_ix_function.html#a11e9232ab82305c5619776d18819290b">00086</a>    QString <a class="code" href="classqx_1_1_ix_function.html#a11e9232ab82305c5619776d18819290b">getDescription</a>()<span class="keyword"> const         </span>{ <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_ix_function.html#ac35f9f10ef77391feb029b0beabff381" title="Function description.">m_sDescription</a>; }
<a name="l00087"></a>00087 
<a name="l00088"></a><a class="code" href="classqx_1_1_ix_function.html#a53aecc14ace5f2834de68a9c37b9f08f">00088</a>    <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_function.html#a53aecc14ace5f2834de68a9c37b9f08f">setKey</a>(<span class="keyword">const</span> QString &amp; s)         { <a class="code" href="classqx_1_1_ix_function.html#a7165364cf3dbd0f5db4dba02cf7b6ec0" title="Function key.">m_sKey</a> = s; }
<a name="l00089"></a><a class="code" href="classqx_1_1_ix_function.html#a9aec53b1f34fded0df113dbc5b3359a9">00089</a>    <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_function.html#a9aec53b1f34fded0df113dbc5b3359a9">setSeparator</a>(<span class="keyword">const</span> QString &amp; s)   { <a class="code" href="classqx_1_1_ix_function.html#aeb7cd97182ac1f838098e9e340060200" title="Separator character(s) for &#39;QString&#39; parameters type.">m_sSeparator</a> = s; }
<a name="l00090"></a><a class="code" href="classqx_1_1_ix_function.html#a39902afe1f7c7f7445cd9c3ab48c7baa">00090</a>    <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_ix_function.html#a39902afe1f7c7f7445cd9c3ab48c7baa">setDescription</a>(<span class="keyword">const</span> QString &amp; s) { <a class="code" href="classqx_1_1_ix_function.html#ac35f9f10ef77391feb029b0beabff381" title="Function description.">m_sDescription</a> = s; }
<a name="l00091"></a>00091 
<a name="l00092"></a>00092    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classqx_1_1_ix_function.html#a83f5b948eaab5b1dcbba52fd6ea37061">getParamCount</a>() <span class="keyword">const</span> = 0;
<a name="l00093"></a>00093 
<a name="l00094"></a>00094    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> <a class="code" href="classqx_1_1_ix_function.html#a3298aeaafd6044479da27f20ad2478fe">invoke</a>(<span class="keyword">const</span> QString &amp; params = QString(), boost::any * ret = NULL) <span class="keyword">const</span> = 0;
<a name="l00095"></a>00095    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> <a class="code" href="classqx_1_1_ix_function.html#a3298aeaafd6044479da27f20ad2478fe">invoke</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_ix_function.html#a53d1eb72393b4a5dbe13656cf511e13b">type_any_params</a> &amp; params, boost::any * ret = NULL) <span class="keyword">const</span> = 0;
<a name="l00096"></a>00096    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> <a class="code" href="classqx_1_1_ix_function.html#a3298aeaafd6044479da27f20ad2478fe">invoke</a>(<span class="keywordtype">void</span> * pOwner, <span class="keyword">const</span> QString &amp; params = QString(), boost::any * ret = NULL) <span class="keyword">const</span> = 0;
<a name="l00097"></a>00097    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> <a class="code" href="classqx_1_1_ix_function.html#a3298aeaafd6044479da27f20ad2478fe">invoke</a>(<span class="keywordtype">void</span> * pOwner, <span class="keyword">const</span> <a class="code" href="classqx_1_1_ix_function.html#a53d1eb72393b4a5dbe13656cf511e13b">type_any_params</a> &amp; params, boost::any * ret = NULL) <span class="keyword">const</span> = 0;
<a name="l00098"></a>00098 
<a name="l00099"></a>00099    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> <a class="code" href="classqx_1_1_ix_function.html#a6ecbb017e2343cc7fcfdaf66ad69dc46">isValidFct</a>() <span class="keyword">const</span> = 0;
<a name="l00100"></a>00100    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> <a class="code" href="classqx_1_1_ix_function.html#a9e4f92033e890f08b0249a7287f69e65">isValidParams</a>(<span class="keyword">const</span> QString &amp; params) <span class="keyword">const</span> = 0;
<a name="l00101"></a>00101    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> <a class="code" href="classqx_1_1_ix_function.html#a9e4f92033e890f08b0249a7287f69e65">isValidParams</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_ix_function.html#a53d1eb72393b4a5dbe13656cf511e13b">type_any_params</a> &amp; params) <span class="keyword">const</span> = 0;
<a name="l00102"></a>00102 
<a name="l00103"></a>00103    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00104"></a><a class="code" href="classqx_1_1_ix_function.html#a46842d8a6384f46ed87f9577c7a96eb8">00104</a>    <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> <a class="code" href="classqx_1_1_ix_function.html#a46842d8a6384f46ed87f9577c7a96eb8">isValidOwner</a>(<span class="keywordtype">void</span> * pOwner, T * dummy)<span class="keyword"> const</span>
<a name="l00105"></a>00105 <span class="keyword">   </span>{
<a name="l00106"></a>00106       Q_UNUSED(dummy);
<a name="l00107"></a>00107       <span class="keyword">typedef</span> boost::is_same&lt;T, void&gt; qx_verify_owner_tmp;
<a name="l00108"></a>00108       BOOST_STATIC_ASSERT(! qx_verify_owner_tmp::value);
<a name="l00109"></a>00109       <span class="keywordflow">if</span> (! pOwner) { <span class="keywordflow">return</span> <a class="code" href="_qx_bool_8h.html#a40069a4245b458585997dadea3a86b33">qx_bool</a>(<span class="keyword">false</span>, 0, <a class="code" href="_qx_function_error_8h.html#a4fd5d90dc9bb6eff683eabf183c3798d">QX_FUNCTION_ERR_NULL_OWNER</a>); }
<a name="l00110"></a>00110 <span class="preprocessor">#ifndef _QX_NO_RTTI</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span>      <span class="keywordflow">if</span> (! dynamic_cast&lt;T *&gt;(static_cast&lt;T *&gt;(pOwner))) { <span class="keywordflow">return</span> <a class="code" href="_qx_bool_8h.html#a40069a4245b458585997dadea3a86b33">qx_bool</a>(<span class="keyword">false</span>, 0, <a class="code" href="_qx_function_error_8h.html#acd0800fcebfbcf76b22fdbe21dd7f733">QX_FUNCTION_ERR_INVALID_OWNER</a>); }
<a name="l00112"></a>00112 <span class="preprocessor">#endif // _QX_NO_RTTI</span>
<a name="l00113"></a>00113 <span class="preprocessor"></span>      <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00114"></a>00114    }
<a name="l00115"></a>00115 
<a name="l00116"></a>00116    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00117"></a><a class="code" href="classqx_1_1_ix_function.html#a943f33a7c55a748d86a5f6a26c263928">00117</a>    <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> <a class="code" href="classqx_1_1_ix_function.html#a943f33a7c55a748d86a5f6a26c263928">isValid</a>(<span class="keyword">const</span> T &amp; params)<span class="keyword"> const</span>
<a name="l00118"></a>00118 <span class="keyword">   </span>{
<a name="l00119"></a>00119       <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> bValid = <a class="code" href="classqx_1_1_ix_function.html#a6ecbb017e2343cc7fcfdaf66ad69dc46">isValidFct</a>(); <span class="keywordflow">if</span> (! bValid) { <span class="keywordflow">return</span> bValid; };
<a name="l00120"></a>00120       bValid = <a class="code" href="classqx_1_1_ix_function.html#a9e4f92033e890f08b0249a7287f69e65">isValidParams</a>(params); <span class="keywordflow">if</span> (! bValid) { <span class="keywordflow">return</span> bValid; };
<a name="l00121"></a>00121       <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00122"></a>00122    }
<a name="l00123"></a>00123 
<a name="l00124"></a>00124    <span class="keyword">template</span> &lt;<span class="keyword">class</span> T, <span class="keyword">class</span> U&gt;
<a name="l00125"></a><a class="code" href="classqx_1_1_ix_function.html#a7aa8851130c94ecae92cc8d1e0683036">00125</a>    <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> <a class="code" href="classqx_1_1_ix_function.html#a943f33a7c55a748d86a5f6a26c263928">isValid</a>(<span class="keywordtype">void</span> * pOwner, <span class="keyword">const</span> T &amp; params, U * dummy)<span class="keyword"> const</span>
<a name="l00126"></a>00126 <span class="keyword">   </span>{
<a name="l00127"></a>00127       Q_UNUSED(dummy);
<a name="l00128"></a>00128       <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> bValid = <a class="code" href="classqx_1_1_ix_function.html#a6ecbb017e2343cc7fcfdaf66ad69dc46">isValidFct</a>(); <span class="keywordflow">if</span> (! bValid) { <span class="keywordflow">return</span> bValid; };
<a name="l00129"></a>00129       bValid = <a class="code" href="classqx_1_1_ix_function.html#a9e4f92033e890f08b0249a7287f69e65">isValidParams</a>(params); <span class="keywordflow">if</span> (! bValid) { <span class="keywordflow">return</span> bValid; };
<a name="l00130"></a>00130       bValid = isValidOwner&lt;U&gt;(pOwner, NULL); <span class="keywordflow">if</span> (! bValid) { <span class="keywordflow">return</span> bValid; };
<a name="l00131"></a>00131       <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00132"></a>00132    }
<a name="l00133"></a>00133 
<a name="l00134"></a>00134 };
<a name="l00135"></a>00135 
<a name="l00136"></a><a class="code" href="namespaceqx.html#a810d49396956ace0fa67b5f2e18b88d0">00136</a> <span class="keyword">typedef</span> qx_shared_ptr&lt;IxFunction&gt; <a class="code" href="namespaceqx.html#a810d49396956ace0fa67b5f2e18b88d0">IxFunction_ptr</a>;
<a name="l00137"></a><a class="code" href="namespaceqx.html#a62b91f4463c8a010fe9d4a5dc00a1526">00137</a> <span class="keyword">typedef</span> <a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">QxCollection&lt;QString, IxFunction_ptr&gt;</a> <a class="code" href="namespaceqx.html#a62b91f4463c8a010fe9d4a5dc00a1526">IxFunctionX</a>;
<a name="l00138"></a><a class="code" href="namespaceqx.html#a76fd20279e2084c77fb983aced369308">00138</a> <span class="keyword">typedef</span> qx_shared_ptr&lt;IxFunctionX&gt; <a class="code" href="namespaceqx.html#a76fd20279e2084c77fb983aced369308">IxFunctionX_ptr</a>;
<a name="l00139"></a>00139 
<a name="l00140"></a>00140 } <span class="comment">// namespace qx</span>
<a name="l00141"></a>00141 
<a name="l00142"></a>00142 <span class="preprocessor">#endif // _IX_FUNCTION_H_</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_ix_function_8h.html">IxFunction.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Sun Dec 11 2016 13:41:04 for QxOrm by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
